package com.chenyuhan.myview;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.chenyuhan.myview.testViewCanvas.activity.TestVIewCanvasActivity;
import com.chenyuhan.myview.testview.activity.TestViewActivity;

/**
 * Created by Administrator on 2017/7/5 0005.
 */

public class ChoiceActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choice);
        findViewById(R.id.testview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ChoiceActivity.this, TestViewActivity.class);
                startActivity(intent);
            }
        });
        findViewById(R.id.test_view_canvas).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ChoiceActivity.this, TestVIewCanvasActivity.class);
                startActivity(intent);
            }
        });
    }
}
